<%@page language="java" contentType="text/html; charset=utf-8"%>
<%@include file="/commons/inc.jsp" %>

<style>
  hhh {
    width: 1em;
    font-size: 40px;
    letter-spacing: 40px; /* arbitrarily large letter-spacing for safety */
  }
</style>
   
<h3 id="navTitleId">运动随访</h3>

<body id="body">

<%@include file="/commons/showmessage.jsp" %>

<form name="sportform" id="sportform" method="post" action="${contextPath}/sport/sport.action?method=saveEditSportsSuifang">
	<s:hidden name="sportsSuifang.sportstreatid" id="sportsSuifang.sportstreatid"></s:hidden>
	<s:hidden name="sportsSuifang.patientid" id="sportsSuifang.patientid"></s:hidden>
	<s:hidden name="patientid" id="patientid"></s:hidden>
	
	<table border="0" cellspacing="1" cellpadding="0" class="formTable" width="100%" >
	<tbody>
		<tr>
			<td align="left" class="form-td"><label class="label">您坚持按运动处方进行运动锻炼吗？</label></td>
			<td align="left" class="form-td" colspan="7"><select name="sportsSuifang.isfollow" id="sportsSuifang.isfollow">
					<option value="0" <s:if test="sportsSuifang.isfollow == 0">selected</s:if>>请选择</option>
					<option value="1" <s:if test="sportsSuifang.isfollow == 1">selected</s:if>>是</option>
					<option value="2" <s:if test="sportsSuifang.isfollow == 2">selected</s:if>>否</option>
				</select></td>
		</tr>
		<tr>
			<td align="left" class="form-td"><label class="label">您选择了其他的运动锻炼形式吗？</label></td>
			<td align="left" class="form-td"><select name="sportsSuifang.othertype" id="sportsSuifang.othertype">
					<option value="0" <s:if test="sportsSuifang.othertype == 0">selected</s:if>>请选择</option>
					<option value="1" <s:if test="sportsSuifang.othertype == 1">selected</s:if>>是</option>
					<option value="2" <s:if test="sportsSuifang.othertype == 2">selected</s:if>>否</option>
				</select></td>
			<td align="left" class="form-td"><label class="label">运动锻炼形式</label></td>
			<td align="left" class="form-td"><input type="text" name="sportsSuifang.sportstype" id="sportsSuifang.sportstype" size="5" value="${sportsSuifang.sportstype}"/></td>
			<td align="left" class="form-td"><label class="label">运动锻炼频率</label></td>
			<td align="left" class="form-td"><input type="text" name="sportsSuifang.sportsfreq" id="sportsSuifang.sportsfreq" size="5" value="${sportsSuifang.sportsfreq}"/>次/周</td>
			<td align="left" class="form-td"><label class="label">运动锻炼时间</label></td>
			<td align="left" class="form-td"><input type="text" name="sportsSuifang.sportstime" id="sportsSuifang.sportstime" size="5" value="${sportsSuifang.sportstime}"/>分钟/次</td>
		</tr>
	 
		<tr>
			<td align="left" class="form-td"><label class="label">清晨起床时心率:</label></td>
			<td align="left" class="form-td" colspan="7"><input type="text" name="sportsSuifang.morningrate" id="sportsSuifang.morningrate" size="5" value="${sportsSuifang.morningrate}"/>次/分</td>
		</tr>
		<tr>
			<td align="left" class="form-td" class="tdLabel"><label class="label">运动前安静状态心率:</label></td>
			<td align="left" class="form-td"><input type="text" name="sportsSuifang.ratea" id="sportsSuifang.ratea" size="5" value="${sportsSuifang.ratea}"/>次/分</td>
			<td align="left" class="form-td"><label class="label">运动前安静状态呼吸:</label></td>
			<td align="left" class="form-td"><input type="text" name="sportsSuifang.huxia" id="sportsSuifang.huxia" size="5" value="${sportsSuifang.huxia}"/>次/分</td>
			<td align="left" class="form-td"><label class="label">运动前血糖:</label></td>
			<td align="left" class="form-td" colspan="3"><input type="text" name="sportsSuifang.xuetanga" id="sportsSuifang.xuetanga" size="5" value="${sportsSuifang.xuetanga}"/>mmol/L</td>
		</tr>
		<tr>
			<td align="left" class="form-td"><label class="label">运动后即刻心率:</label></td>
			<td align="left" class="form-td"><input type="text" name="sportsSuifang.rateb" id="sportsSuifang.rateb" size="5" value="${sportsSuifang.rateb}"/>次/分</td>
			<td align="left" class="form-td"><label class="label">运动后即刻呼吸:</label></td>
			<td align="left" class="form-td"><input type="text" name="sportsSuifang.huxib" id="sportsSuifang.huxib" size="5" value="${sportsSuifang.huxib}"/>次/分</td>
			<td align="left" class="form-td"><label class="label">运动后即刻血糖:</label></td>
			<td align="left" class="form-td" colspan="3"><input type="text" name="sportsSuifang.xuetangb" id="sportsSuifang.xuetangb" size="5" value="${sportsSuifang.xuetangb}"/>mmol/L</td>	
		</tr>
		 
		<tr>
			<td align="left" class="form-td"><label class="label">运动后自我感觉疲劳程度:</label></td>
			<td align="left" class="form-td" colspan="7"><select name="sportsSuifang.feel" id="sportsSuifang.feel">
					<option value="0" <s:if test="sportsSuifang.feel == 0">selected</s:if>>请选择</option>
					<option value="1" <s:if test="sportsSuifang.feel == 1">selected</s:if>>0</option>
					<option value="2" <s:if test="sportsSuifang.feel == 2">selected</s:if>>1</option>
					<option value="3" <s:if test="sportsSuifang.feel == 3">selected</s:if>>2</option>
					<option value="4" <s:if test="sportsSuifang.feel == 4">selected</s:if>>3</option>
					<option value="5" <s:if test="sportsSuifang.feel == 5">selected</s:if>>4</option>
					<option value="6" <s:if test="sportsSuifang.feel == 6">selected</s:if>>5</option>
					<option value="7" <s:if test="sportsSuifang.feel == 7">selected</s:if>>6</option>
					<option value="8" <s:if test="sportsSuifang.feel == 8">selected</s:if>>7</option>
					<option value="9" <s:if test="sportsSuifang.feel == 9">selected</s:if>>8</option>
					<option value="10" <s:if test="sportsSuifang.feel == 10">selected</s:if>>9</option>
					<option value="11" <s:if test="sportsSuifang.feel == 11">selected</s:if>>10</option>
				</select></td>	 
		</tr> 
		 
		 <tr>
		 	<td align="left" class="form-td" colspan="2"><label class="label">近一个月进行运动锻炼后您是否出现过低血糖反应:</label></td>
		 	<td align="left" class="form-td" colspan="6"><input style="vertical-align:sub;" type="radio" name="sportsSuifang.lowsugar" id="low1" <s:if test="sportsSuifang.lowsugar==0">checked</s:if> onclick="javascript:ifLow(this);" value="0"/><font style="vertical-align:sub;">否</font>
		 		<input style="vertical-align:sub;" type="radio" name="sportsSuifang.lowsugar" id="low2" <s:if test="sportsSuifang.lowsugar==1">checked</s:if> onclick="javascript:ifLow(this);" value="1"/><font style="vertical-align:sub;">是(</font>
		 		<input style="vertical-align:sub;" type="text" name="sportsSuifang.lowcount" id="sportsSuifang.lowcount" size="4" <s:if test="sportsSuifang.lowsugar==0">disabled="true"</s:if> value="${sportsSuifang.lowcount}"/><font style="vertical-align:sub;">次)</font></td>
		 </tr>
		 </tbody>
    </table>

	<!-- <p></p>
	<table border="0" cellspacing="1" cellpadding="0" class="formTable" width="100%" >
    	<tr><td class="form-td">分级</td><td class="form-td">0</td><td class="form-td">1</td><td class="form-td">2</td>
    		<td class="form-td">3</td><td class="form-td">4</td><td class="form-td">5</td><td class="form-td">6</td>
    		<td class="form-td">7</td><td class="form-td">8</td><td class="form-td">9</td><td class="form-td">10</td>
    	</tr>
    	<tr><td></td><td class="form-td">没有感觉</td><td class="form-td">非常轻松</td><td class="form-td">比较轻松</td>
    		<td class="form-td">轻松</td><td class="form-td">稍微有点累</td><td class="form-td">有点累</td>
    		<td class="form-td">比较累</td><td class="form-td">非常累</td><td class="form-td">因累而有不适感</td>
    		<td class="form-td">因累身体不适并难以忍受</td><td class="form-td">累到极点</td>
    	</tr>
    </table> -->
     
    <div align="center"> 
    	<img src="${contextPath}/images/phyLevel.png" alt="level" style="margin-top:20px" align="center" border="0" />  
    </div>
    
	<table>
		<tr>
			<td align="center"> 
			<input type="reset" value="重置"> 
		    <input type="button" onclick="saveEdit('save');" value="保存"></td>
		</tr>
	</table>
</form>
  

<%@include file="/commons/tableSel.jsp" %>

</body>

<style type="text/css">
body {
	height: 100%;
	width: 100%;
}
</style>

<script>
function saveEdit(type){
	if(type=='refresh'){
		location.reload();
	}else if(type=='save'){
		if(!Validator.Validate($('sportform'),3)){
			return;
		}	
		$('sportform').submit();
	}
}
function ifLow(obj){
	if(obj.value==1){
		$('sportsSuifang.lowcount').disabled=false;
	}else{
		$('sportsSuifang.lowcount').value="";
		$('sportsSuifang.lowcount').disabled=true;
	}
}
</script>